Page({
  data: {
    
  },
  inputword: function(e) {
    this.setData({
      word: e.detail.value
    })
  },

  turn_map: function (e) {
    wx.navigateTo({
      url: "park/map/map"
    })
    },

  ok: function () {
    wx.request({
      url: 'http://localhost:8080/wetchat/TestServlet',
      data: {
        word:this.data.word,
      },
      method: 'GET',
      header: {
        'content-type': 'application/json' // 默认值
      },
      success: function (res) {
        console.log(res.data + "我成功了！！");
      },
      fail: function (res) {
        console.log("失败！！！！！！");
      }
    })
  }
})

